/**
 * 本地存储操作
 */
import store from 'store'

export default {
    save (obj) {
        const { key, value } = obj
        // localStorage.setItem(key, JSON.stringify(value))
        store.set(key, value)
    },
    get (key) {
        // return JSON.parse(localStorage.getItem(key) || '{}')
        return store.get(key) || {}
    },
    remove (key) {
        // localStorage.removeItem(key)
        store.remove(key)
    }
}